import './assets/main.css'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import router from "@/router/index";
import Common from "@/plugins/common";
import MyComponent from "@/components/MyComponent.vue";

// 创建vue实例
const app = createApp(App);
// 引入路由vue-router
app.use(router);
// 引入element-plus
app.use(ElementPlus);
// 引入element-plus图标
for( const [key, component] of Object.entries(ElementPlusIconsVue) ) {
  app.component(key, component);
}
app.use(Common);
app.component('MyComponent', MyComponent);//注册全局组件
// 挂载vue实例
app.mount('#app');

